package com.jhs.boot.common.beans;

import com.jhs.boot.system.model.entity.SysNodes;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zengxiangying
 * @date 2023/8/14 10:50
 */
public class Common {

    public static final Boolean  TRUE= true;
    public static final Boolean  FALSE= false;
    public static final Integer MSG_LENGTH_0 = 9;
    public static final Integer MSG_LENGTH_1 = 39;
    public static final byte MSG_COMMAND_0 = (byte) 0x05;
    public static final byte MSG_COMMAND_1 = (byte) 0xff;
    public static final Integer ZERO = 0;
    public static final Integer ONE = 1;
    public static final Integer TWO = 2;
    public static final Integer THIRD = 3;
    public static final Integer FOUR = 4;
    public static final Integer FIVE = 5;
    public static final Integer SIX = 6;
    public static final Integer SEVEN = 7;
    public static final Integer EIGHT = 8;
    public static final Integer NINE = 9;
    public static final Integer TEN = 10;
    public static final Integer ELEVEN = 11;
    public static final Integer TWELVE = 12;
    public static final Integer FOURTEEN = 14;
    public static final Integer SIXTEEN = 16;
    public static final Integer THIRTY = 30;
    public static final Integer THIRTY_ONE = 31;
    public static final Integer THIRTY_TWO = 32;
    public static final Integer THIRTY_THREE = 33;
    public static final Integer FOURTY_TWO = 42;


    public static final String ZERO_STR = "0";
    public static final String ONE_STR = "1";
    public static final String TWO_STR = "2";
    public static final String THIRD_STR = "3";
    public static final String ZERO_THIRD_STR = "03";
    public static final String FOUR_STR = "4";
    public static final String FIVE_STR = "5";
    public static final String SIX_STR = "6";
    public static final String SEVEN_STR = "7";
    public static final String EIGHT_STR = "8";
    public static final String NINE_STR = "9";
    public static final String TEN_STR = "10";
    public static final int RES_FALSE = 500;
    public static final int RES_TRUE = 200;
    public static final String RES_TRUE_STR = "200";
    public static final String OPERATE = "operate";
    public static final String MANUAL = "manual";
    public static final String MSG_CONNECT = "连接";
    public static final String MSG_SUCCESS = "成功";
    public static final String MSG_FAULT = "失败";
    public static final String WIN_64_UP = "Win";
    public static final String WIN_64_DOWN = "win";
    public static final String INIT_MSG = "初始化";
    public static final String COME_IN_MSG = "一键入仓";
    public static final String WAREHOUSING_MSG = "一键扫描";
    public static final String HUI_KUN_MSG = "一键回坞";
    public static final String AUTO_DISTRIBUTION_MSG = "自动布矿";
    public static final String STOP_DISTRIBUTION_MSG = "停止布矿";
    public static final String AUTO_CAR_MSG = "自动装汽车";
    public static final String CAR_REPAIR_DOO_MSG = "汽车补一斗";
    public static final String STOP_CAR_MSG = "汽车装车完成";
    public static final String TRAIN_SCAN_MSG = "火车扫描";
    public static final String AUTO_TRAIN_MSG = "自动装火车";
    public static final String TRAIN_REPAIR_DOO_MSG = "火车补一斗";
    public static final String STOP_TRAIN_MSG = "火车装车完成";
    public static final String SINGLE_POINT_MSG ="单一抓放任务";
    public static final String REPAIR_CONFIG_MSG ="修改抓放区域配置文件";
    public static final String GET_CONFIG_MSG ="获取抓放区域配置文件";
    public static final String PRECISION_GRAPPLE ="精准抓斗" ;

    public static final String HAS_TRUCK ="车号已存在，无需添加" ;
    public static final String HAS_SUCCESS_TRUCK ="车号添加成功" ;
    public static final String HAS_ERROR_TRUCK ="车号添加失败" ;
    public static final String MSG_REASON = "当前有抓斗任务正在执行，请结束后再操作";
    public static final String GET_SCAN_LOCATION ="获取一键扫描位置点";
    public static final String UPDATE_SCAN_LOCATION ="更新一键扫描位置点";
    public static final String  REASON = "当前有任务正在执行，请结束后再操作";
    public static final String TRUCK = "car_";
    public static final String TRUCK_END = "car_end";
    public static final String NEXT_TRUCK = "next_car";
    public static final String TRAIN= "train_";
    public static final String TRAIN_END = "train_end";
    public static final String TRAIN_LANE = "train_lane";
    public static final String TRUNK_LANE = "trunk_lane";
    public static final String COMMA = ",";
    public static final String LAST = "last_";
    public static final String ACROSS = "_";
    public static final String MODE = "mode";
    public static final String AREA_END="area_end";

    public static final String MANUAL_DISTRIBUTION = "area_";
    public static final String MANUAL_TRAIN = "train_";
    public static final String MANUAL_TRUNK = "truck_";
    public static final String MANUAL_CLEAN = "clean_";
    public static final String VERTICAL = "|";

    public static final String CLEAN = "clean_";
    public static final String CLEAN_Z_P="clean_z_p";
    public static final String CLEAN_Z_G="clean_z_g";
    public static final String CLEAN_RUN="clean_run";

    public static final String AREA = "area_";
    public static final String AREA_Z_P="area_z_p";
    public static final String AREA_Z_G="area_z_g";
    public static final String AREA_RUN = "area_run";

    public static final String TRUCK_O = "truck_";
    public static final String TRUCK_Z_P="truck_z_p";
    public static final String TRUCK_Z_G="truck_z_g";
    public static final String TRUCK_RUN = "truck_run";

    public static final String TRAIN_O = "train_";
    public static final String TRAIN_Z_P="train_z_p";
    public static final String TRAIN_Z_G="train_z_g";
    public static final String TRAIN_RUN = "train_run";


    public static final String RECOVER = "recover_";
    public static final String XP =  "x_p";
    public static final String YP =  "y_p";
    public static final String ZP =  "z_p";
    public static final String XG =  "x_g";
    public static final String YG =  "y_g";
    public static final String ZG =  "z_g";

    public static final String RUN = "run";



    public static final int _40001 = 0 ;
    public static final int _40002 =  1;
    public static final int _40004 = 3 ;
    public static final int _40006 = 5 ;
    public static final int _40008 = 7 ;
    public static final int _40010 =  9;
    public static final int _40011 = 10 ;
    public static final int _40013 = 12 ;
    public static final int _40015 = 14 ;
    public static final int _40017 =  16;
    public static final int _40019 = 18 ;
    public static final int _40021 = 20 ;
    public static final int _40023 =  22;
    public static final int _40025 = 24 ;
    public static final int _40026 =  25;
    public static final int _40028 = 27;
    public static final int _40029 = 28;
    public static final int _40030= 29;
    public static final int _40031=30;
    public static final int _40032=31;
    public static final int _40033=32;
    public static final int _40034=33;
    public static final int _40036=35;
    public static final int _40038=37;
    public static final int _40039=38;
    public static final int _40040=39;
    public static final int _40041=40;
    public static final int _40042 =41;
    public static final int AUTO_MODE = 16384;
    public static final int OPERAT_EMSTOP = 1  ;
    public static final int EM_STOP_OPERATION = 2;
    public static final int DOOR_SWITCH = 4;
    public static final int AUTO_RUN_CONDITION = 32768;
    public static final int POWER_RUN_PB = 8192;
    public static final int POWER_RUN = 4096 ;
    public static final int AUTO_RUN_PB = 2048;
    public static final int AUTO_RUN = 256;

    public static final Object NULL = null;
    public static final String REBOOT ="重启" ;
    public static final Integer TWOHUNDRED = 200;
    public static final String PRECISION_MSG = "当前暂无汽车发货，无法智能获取放点,可自动选择放点";

    public static final Character C_ONE = '1';
    public static final Character C_ZERO = '0';
    /**
     * 系统无车号标志
     */
    public final static  String NO_TRUCK="no_truck";
    public static final String MAP = "mpp";
    public static final String MPP = "map";
    public static final String TERMINAL = "terminal";
    public static final String FORBID_ADD_RFID = "此类型禁止手动添加";
    public static final String FORBID_EXIT_TWO = "禁止添加主节点,因为部门分组中已经存在主节点";
    public static final String DHCP = "DHCP";
    public static final String RFID = "RFID";
    public static final String ROUTE = "ROUTE-";
    public static final String HTTP = "http://";
    public static final String AP = "AP-";
    public static final String HENG = "-";
    public static final String STATUS = "Status-";
    public static final String NEXTNODE = "T-";
    public static Map<String, SysNodes> nodeQueue = new HashMap<>(500);
}
